<%
//会员注册
layout("/inc/layout.html",{
title:'会员注册',
keywords:'会员注册',
description:'会员注册',
style:'user.css'
}){
%>
<div class="container mt90">
    <div class="row col-sm-offset-2 col-sm-8">
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>统一身份认证平台账号注册</strong>
            </div>
            <div class="panel-body">
                <h4 class="text-danger text-center" id="messageCode"></h4>
                <form class="form-horizontal" id="registerForm" method="post">
                    <input type="hidden" name="token" id="token" value="${token!}">
                    <input type="hidden" name="operatorId" id="operatorId" value="${operatorId!}">
                    <div class="form-group">
                        <label for="phone" class="col-sm-2 control-label">手机号码</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-lg" id="phone" name="phone" value="${session.phone!}" placeholder="输入手机号" required="required">
                        </div>
                    </div>

                    <div class="form-group" id="codeDiv">
                        <label for="code" class="col-sm-2 control-label">验证码</label>
                        <div class="row col-sm-10">
                        <span class="col-xs-6">
                              <input type="number" class="form-control input-lg" id="code" name="code" placeholder="输入手机验证码">
                        </span>
                            <span class="col-xs-6 pull-right">
                            <button class="btn btn-success btn-lg btn-block" id="getCode" type="button">获取验证码</button>
                        </span>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="password" class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control input-lg" id="password" name="password" placeholder="输入密码（8-16位字符，数字、字母、符号至少包含两种）" required="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="confirmPassword" class="col-sm-2 control-label">确认密码</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control input-lg" id="confirmPassword" name="confirmPassword" placeholder="再次输入密码（8-16位字符，数字、字母、符号至少包含两种）" required="required">
                        </div>
                    </div>


                    <hr/>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-8">
                            <button type="button" id="doSubmit" class="btn btn-success btn-lg btn-block">&nbsp;提交注册&nbsp;</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="panel-footer">
                <div class="clearfix">
                    <div class="col-sm-6 text-left"><a href="/user/resetPassword">找回密码</a></div>
                    <div class="col-sm-6 text-right"><a href="/user/login">用户登录</a></div>
                </div>
            </div>
        </div>
    </div>
</div>
<% } %>
<script>
    require(['modules/user','common/jquery.cookie.min'], function (user) {
        user.register();
    });
</script>

</body>
</html>